﻿#include "FileTransferClient.h"
#include <QTcpSocket>
#include <QSslSocket>
#include <QDebug>

FileTransferClient::FileTransferClient(QObject *parent)
    : QObject(parent)
{
    InitProperty();
}

FileTransferClient::~FileTransferClient()
{

}

void FileTransferClient::InitProperty()
{
    m_pTcpSocket = new QTcpSocket(this);
    
    //连接服务端
    connect(m_pTcpSocket, &QTcpSocket::connected, this, [=](){
        qDebug() << "connected";
    });

    connect(m_pTcpSocket, &QTcpSocket::readyRead, this, [=](){
        qDebug() << m_pTcpSocket->readAll();
    });
}
